package cn.com.test.service;

import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import java.util.Map;

import org.apache.log4j.Logger;
import org.springframework.context.ApplicationContext;


import cn.com.test.dao.User;
import cn.com.test.dao.UserDAO;
import cn.com.test.daox.UserDAOx;

/**
 * @Author zhou
 * @Date Sun Feb 27 10:13:35 CST 2011
 * @to-do 
 */public class UserService  {
	
	private static final Logger log = Logger.getLogger(UserService.class);
	
	private UserDAOx userDAOx;
	
	public void setUserDAOx(UserDAOx userDAOx) {
		this.userDAOx = userDAOx;
	}
	
	public UserDAOx getUserDAOx() {
		return userDAOx;
	}
	
	public static UserService getInstance(ApplicationContext ctx) {
		return (UserService) ctx.getBean("UserService");
	}
}